//
//  WeiBoView.h
//  CloudWeibo
//
//  Created by CLOUD on 11/26/14.
//  Copyright (c) 2014 Cloud. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "RTLabel.h"

#define kWeibo_Width_List  (320-60) //微博在列表中的宽度
#define kWeibo_Width_Detail 300     //微博在详情页面的宽度

@class WeiBoModel;
@class ThemeImageView;
@interface WeiBoView : UIView<RTLabelDelegate>
{
@private
    ThemeImageView *_repostBackgroundView;
    WeiBoView *_repostView;
    RTLabel *_textLabel;
    UIImageView     *_image;
    NSMutableString *_parsedText;
}

@property(nonatomic, assign) BOOL isRepost;

@property(nonatomic, assign) BOOL isDetail;

@property(nonatomic, retain) WeiBoModel *weiBoModel;

+ (float)getFontSize:(BOOL)isDetail isRepost:(BOOL)isRepost;

//计数微博视图的高度
+ (CGFloat)getWeiboViewHeight:(WeiBoModel *)weiboModel
                     isRepost:(BOOL)isRepost
                     isDetail:(BOOL)isDetail;

@end
